import { Indicator } from 'mint-ui';

function showLoading() {
    Indicator.open({
        text: '加载中...',
        spinnerType: 'fading-circle'
    });
}

function closeLoading() {
    Indicator.close();
}

/**
 * 加载服务
 */
export default {
    showLoading: showLoading,
    closeLoading: closeLoading
}